#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>

int main() {
    int n = 0;
    while (scanf("%d", &n) != EOF)
    {
        int i = 0;
        int j = 0;
        for (i = 0;i <= n;i++)
        {
            for (j = 0;j <= n-i;j++)
            {
                printf("* ");
            }
            printf("\n");
        }
        for (i = n + 2;i <= 2 * n + 1;i++)
        {
            for (j = 1;j <= i - n;j++)
            {
                printf("* ");
            }
            printf("\n");
        }
    }
    return 0;
}